<?php
require_once('qcubed/includes/configuration/prepend.inc.php');

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head id="ctl00_Head1">
	<title>
	Triton - Olympusat
	</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="build/css/style.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="build/css/screen.css" type="text/css" media="screen, projection">
     <!--[if lt IE 7.]>
    <script defer type="text/javascript" src="build/scripts/pngfix.js"></script>
    <![endif]-->
    <link rel="stylesheet" href="build/css/boxy.css" type="text/css" media="screen, projection">
    <script type="text/javascript" language="javascript" src="build/scripts/jquery.js"></script>
    <script type="text/javascript" language="javascript" src="build/scripts/jquery.boxy.js"></script>
    <script type="text/javascript" language="javascript" src="res/script/soundmanager2.js"></script>
    
	<script>
	
	$(function () {
		soundManager.url = '/personal/triton/res/swf/';

		soundManager.onready(function() {
			soundManager.createSound({
			  id: 'montyPython',
			  url: '/personal/triton/res/media/more_interesting.mp3'
			});
	
			soundManager.play('montyPython');		
		});

		$(".firstfocus").focus();
		
		$("#loginform").submit(function() {
			$.post("mantis/login.php", $("#loginform").serialize(), function (data) {
				if (parseInt(data) == 1) document.location.href = "index.php";
				else {
					Boxy.alert("Invalid username or password.", null, {title: 'Login Failed'});
				}
			});

			return false;
		});
	});
	
	</script>

</head>
<body class="login">
<form id="loginform" method="post">
			<div id="top" style="color: #e8e8e8; font-size: 22px;">
<div style=" padding: 15px;">
Triton
</div>
			</div>
<center>	
<div style="width: 500px; height: 300px; border: #333333 1px solid; background-color: #e8e8e8; position: relative; top: -35px; text-align: left; padding: 20px;">
<h1>Login</h1>

<div class="container">
	<div class="span-5">Username:</div>
	<div class="span-7 last"><input type="text" name="username" class="firstfocus"/></div>
	<div class="span-5">Password:</div>
	<div class="span-7 last"><input type="password" name="password"/></div>
	<div class="clear"></div>
	<br/><br/>
	<button type="submit" class="positive" id="login">
		<img src="build/images/icons/tick.png"/>
		Continue
	</button>
</div>
</div>

</center>
</form>
</body>